import React,{useContext} from 'react'
import {ThemeContext} from '../App'


const ThemeDemo:React.FC = ()=>{
  const themes = useContext(ThemeContext)
  return (
    <div style={{height:"100px",background:themes.backgroud,color:themes.color}}>我的颜色来自全局</div>
  );
}

export default ThemeDemo;
